package com.lc.demo.bean;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Size;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Student {

    @Size(min=10,max = 10,message = "学号长度必须为10")
    private String stuId;
    @Size(min=1,max = 10,message = "名字长度必须在1-10之间")
    private String stuName;
    private String stuPass;
    private String stuClass;
    private String stuSex;
    @Size(min = 11,max = 11,message = "请输入11位手机号码")
    private String stuTele;

}
